package com.neusoft.neuiotms.dcvm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.bizcore.web.dto.result.ResultListDTO;
import com.neusoft.neuiotms.dcvm.service.CapacityService;

import io.swagger.annotations.Api;

@Api("模拟接口实现")
@RestController
public class MockImplController {

    @Autowired
    private CapacityService capacityService;

    @GetMapping(value = "/external/dcim/monitor/cabitnetCapaData/{location}")
    public ResultListDTO<?> index(@PathVariable final String location) {
        return ResultListDTO.success(this.capacityService.getCabinetCapacity(location));
    }
}
